using System;

namespace F2Enum.Converters
{
    public class DecimalConverter : ConverterBase<decimal>
    {
        public override decimal Convert(string value)
        {
            decimal result;
            if (decimal.TryParse(value, out result))
                return result;
            throw new InvalidCastException("The Value Format Is Incorrect");
        }
    }
}